package com.tongji.showroom.command
{
	import com.tongji.showroom.events.AddUserSceneEvent;
	import com.tongji.showroom.model.UserSceneModel;
	import com.tongji.showroom.service.UserSceneService;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/08/
	 */ 
	public class AddUserSceneCommand extends Command
	{
		[Inject]
		public var event:AddUserSceneEvent;
		
		[Inject]
		public var service:UserSceneService;
		
		[Inject]
		public var model:UserSceneModel;
		
		override public function execute():void
		{
			switch (event.type)
			{
				/*case AddUserSceneEvent.UPDATE_USER_SCENE:
					model.updateUserScene(event.userScene);
					break;*/
				case AddUserSceneEvent.ADD_USER_SCENE:
					service.addUserScene(event.userScene);
					break;
			}
		}
	}
}